class Student(object):
    count = 0
    def __init__(self,name):
        self.name = name
        Student.count += 1
print(Student.count)

stu1 = Student('小陈')
print(stu1.name)

print(Student.count)

stu2 = Student('小杨')
print(stu2.name)

print(Student.count)
stu3 = Student('小张')
print(stu3.name)

print(Student.count)